<template>
  <iframe
    runat="server"
    :src="cimsUrl"
    width="100%"
    height="1000px"
    frameborder="no"
    border="0"
    marginwidth="0"
    marginheight="0"
    scrolling="no"
    allowtransparency="yes"
  />
</template>

<script>
export default {
  name: 'EngineModelNew',
  data() {
    return {
      cimsUrl: './cims/#/processes/' + '?noCache=' + new Date()
    }
  },
  created() {
    const id = this.$route.query.modelId
    console.log(id)
    if (typeof id === 'undefined') {
      this.cimsUrl = './cims/#/processes/' + '?noCache=' + new Date()
    } else {
      this.cimsUrl = './cims/#/processes/' + id + '?noCache=' + new Date()
    }
  }
}

</script>
<style lang='scss' scoped>
</style>
